package com.changli.a_scanner;
import java.util.Scanner;
public class Demo1Scanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        int data1 = sc.nextInt();
        System.out.println("data1 = " + data1);
        //next 遇到空格 结束输入
        String data2 = sc.next();
        System.out.println("data2 = " + data2);
        String data3 = sc.nextLine();
        System.out.println("data3 = " + data3);
    }
}
